<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="/common/_container :: htmlhead"></head>
<body>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>题目管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <!-- <div class="col-sm-3">
                                <#input id="caName" name="分类" 
                                hidden="caNo" readonly="readonly"
								clickFun="Subjects.showMenuSelectTree(); return false;"
								style="background-color: #ffffff !important;"
								selectFlag="true" selectId="pcodeTreeDiv" selectTreeId="pcodeTree" selectStyle="width:244px !important;"/>
                                
                            </div>
                             <div class="col-sm-3">
                                <#NameCon id="condition" name="题目内容" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Subjects.search()"/>
                            </div> -->
                        </div>
                        <div class="hidden-xs" id="SubjectsTableToolbar" role="group">
                           <shiro:hasPermission name="ks_add"> 
								<button type="button" class="btn btn-primary" onclick="Subjects.openAddSubjects()" >
									<i class="fa fa-plus"></i>&nbsp;添加
								</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="ks_update"> 
								<button type="button" class="btn btn-primary" onclick="Subjects.openSubjectsDetail()" >
									<i class="fa fa-plus"></i>&nbsp;修改
								</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="ks_delete"> 
								<button type="button" class="btn btn-primary" onclick="Subjects.delete()" >
									<i class="fa fa-plus"></i>&nbsp;删除
								</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="ks_option"> 
								<button type="button" class="btn btn-primary" onclick="Subjects.openSubjectsOption()" >
									<i class="fa fa-plus"></i>&nbsp;配置答案选项
								</button>
							</shiro:hasPermission> 
						<!-- 	    <#button name="添加" icon="fa-plus" clickFun="Subjects.openAddSubjects()"/>
                            @}
                            @if(shiro.hasPermission("/subjects/update")){
                                <#button name="修改" icon="fa-plus" clickFun="Subjects.openSubjectsDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/subjects/delete")){
                                <#button name="删除" icon="fa-plus" clickFun="Subjects.delete()" space="true"/>
                            @}
                            
                            @if(shiro.hasPermission("/subjects/update")){
                                <#button name="配置答案选项" icon="fa-plus" clickFun="Subjects.openSubjectsOption()" space="true"/>
                            @}
                            
                            @if(shiro.hasPermission("/subjects/delete")){
                                <#button name="生成声音" icon="fa-plus" clickFun="Subjects.doAudio()" space="true"/>
                            @} -->
                        </div>
                        <table id="SubjectsTable" data-mobile-responsive="true" data-click-to-select="true">
							<thead>
								<tr>
									<th data-field="selectItem" data-checkbox="true"></th>
								</tr>
							</thead>
						</table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/static/modular/subjects/subjects/subjects.js}"></script>
</body>
</html>